from email.policy import default

from applications.extensions import db


class UserDepMap(db.Model):
    __tablename__ = 'user_dep_map'
    id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='ID')
    depid = db.Column(db.Integer, nullable=False, comment='部门ID')
    userid = db.Column(db.Integer, nullable=False, comment='用户ID')
    isleader = db.Column(db.Integer, nullable=False, default=0, comment='是否是领导')